package krillr.Modules;
import krillr.Util.*;
import java.awt.Color;
import java.awt.geom.*;

public class StandardGun extends Module {
    public StandardGun(KrillBot b) {
        bot = b;
    }
    public void run() {
        bot.setTarget(bot.findTarget());
        if(bot.target == null)
            return;
        Point2d eP = bot.target.guessLocation();
        bot.shapeList.add(new DebugShape(new Ellipse2D.Double(eP.getX()-36,eP.getY()-36,72,72), new Color(255,0,0)));
        Vector2d newGunVector = new Vector2d();
        newGunVector.setDirection(bot.target.guessAbsoluteBearing());
        newGunVector.setMagnitude(3);
        bot.setGunVector(newGunVector);
    }
}
        